Convert Sorted Array to Binary Search Tree programming question